package com.heima.cart;

import com.heima.cart.conf.RestTemplateConf;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import org.springframework.web.client.RestTemplate;

@MapperScan("com.heima.cart.mapper")
@Import({RestTemplateConf.class})
// 开启Openfeign功能,并指定扫描路径
@EnableFeignClients(basePackages = "com.heima.client")
@SpringBootApplication
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class, args);
    }
}